安装 nginx 服务

如果您使用单独的代理服务器,则默认 Kaspersky Web Traffic Security 不在您的代理服务器上对 ICAP 流量进行加密或对用户进行身份验证。应用程序管理员必须通过使用流量隧道或 iptables 单独确保您的代理服务器和 Kaspersky Web Traffic Security 之间的网络连接安全。

安装 nginx 服务

  1. 如果已在使用的操作系统中预装了 Apache 服务,请卸载。
  2. 如果您正在使用 CentOS 版本 7.x,Red Hat Enterprise Linux 7.x,, 或 SUSE Linux Enterprise Server 15 SP1,请启用储存库支持来安装 nginx 服务。为此,请根据所使用的操作系统执行以下操作:
    • 在 CentOS 操作系统中,创建一个含以下内容名为 /etc/yum/repos.d/nginx.repo 的文件:

      [nginx-stable]

      name=nginx stable repo

      baseurl=http://nginx.org/packages/centos/$releasever/$basearch/

      gpgkey=https://nginx.org/keys/nginx_signing.key

      gpgcheck=1

      enabled=1

    • 在 Red Hat Enterprise Linux 操作系统中,创建一个含以下内容名为 /etc/yum/repos.d/nginx.repo 的文件:

      [nginx-stable]

      name=nginx stable repo

      baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/

      gpgkey=https://nginx.org/keys/nginx_signing.key

      gpgcheck=1

      enabled=1

    • 在 SUSE Linux Enterprise Server 操作系统中连接 Server Applications Module。为此,请执行命令:

      SUSEConnect -p sle-module-server-applications/15.1/x86_64

    在 CentOS 版本 8.x、Red Hat Enterprise Linux 版本 8.x、Debian、Ubuntu 和 ALT Server 操作系统中不需要连接其它储存库。

  3. 安装 nginx 服务软件包。为此,请根据所使用的操作系统运行以下命令之一:
    • CentOS 或 Red Hat Enterprise Linux:

      yum install -y nginx

    • SUSE Linux Enterprise Server:

      zypper install nginx

    • Ubuntu、Debian 或 ALT Server:

      apt-get install nginx

  4. 添加 nginx 服务进行自动启动。为此,请执行命令:

    systemctl enable nginx

  5. 启动 nginx 服务。为此,请执行命令:

    service nginx start

  6. 检查 nginx 服务的状态。为此,请执行命令:

    service nginx status

    激活 参数必须包含 激活(正在运行) 值。

将安装 Nginx 服务。

页面顶端